<?php
/**
 * 公众号获取用户信息
 * @author lss
 * 2017-03-02
 */
namespace soa\mp;

use soa\client;

class UserInfo  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//获取用户信息
	public function info($openid,$platform = "weixin",$company = "kb"){
		return $this->post("api/UserInfo/info",[
			"openId" => $openid,
			"platform" => $platform,
			"company" => $company,
		]);
	}
}